package cn.tedu._03_vehicle.mapper;

import cn.tedu._03_vehicle.pojo.dto.UserRegParam;
import cn.tedu._03_vehicle.pojo.entity.User;
import cn.tedu._03_vehicle.pojo.vo.UserRegQuery;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    //先查询是否有该用户
    UserRegQuery selectByUsername(String username);
    int insert(User user);
    //登录功能
    UserRegQuery selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
}
